六月听书[听].js 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. function str2binl(d) {
  2. for (var _ = Array(), m = (1 << 8) - 1, r = 0; r < d.length * 8; r += 8)
  3. _[r >> 5] |= (d.charCodeAt(r / 8) & m) << r % 32;
  4. return _
  5. }
  6. function binl2hex(d) {
  7. for (var _ = 0 ? "0123456789ABCDEF" : "0123456789abcdef", m = "", r = 0; r < 4 * d.length; r++)
  8. m += _.charAt(d[r >> 2] >> r % 4 * 8 + 4 & 15) + _.charAt(d[r >> 2] >> r % 4 * 8 & 15);
  9. return m
  10. }
  11. function core_md5(d, _) {
  12. d[_ >> 5] |= 128 << _ % 32,
  13. d[14 + (_ + 64 >>> 9 << 4)] = _;
  14. for (var m = 1732584193, r = -271733879, n = -1732584194, h = 271733878, f = 0; f < d.length; f += 16) {
  15. var i = m
  16. , t = r
  17. , c = n
  18. , e = h;
  19. m = md5_ff(m, r, n, h, d[f + 0], 7, -680876936),
  20. h = md5_ff(h, m, r, n, d[f + 1], 12, -389564586),
  21. n = md5_ff(n, h, m, r, d[f + 2], 17, 606105819),
  22. r = md5_ff(r, n, h, m, d[f + 3], 22, -1044525330),
  23. m = md5_ff(m, r, n, h, d[f + 4], 7, -176418897),
  24. h = md5_ff(h, m, r, n, d[f + 5], 12, 1200080426),
  25. n = md5_ff(n, h, m, r, d[f + 6], 17, -1473231341),
  26. r = md5_ff(r, n, h, m, d[f + 7], 22, -45705983),
  27. m = md5_ff(m, r, n, h, d[f + 8], 7, 1770035416),
  28. h = md5_ff(h, m, r, n, d[f + 9], 12, -1958414417),
  29. n = md5_ff(n, h, m, r, d[f + 10], 17, -42063),
  30. r = md5_ff(r, n, h, m, d[f + 11], 22, -1990404162),
  31. m = md5_ff(m, r, n, h, d[f + 12], 7, 1804603682),
  32. h = md5_ff(h, m, r, n, d[f + 13], 12, -40341101),
  33. n = md5_ff(n, h, m, r, d[f + 14], 17, -1502002290),
  34. r = md5_ff(r, n, h, m, d[f + 15], 22, 1236535329),
  35. m = md5_gg(m, r, n, h, d[f + 1], 5, -165796510),
  36. h = md5_gg(h, m, r, n, d[f + 6], 9, -1069501632),
  37. n = md5_gg(n, h, m, r, d[f + 11], 14, 643717713),
  38. r = md5_gg(r, n, h, m, d[f + 0], 20, -373897302),
  39. m = md5_gg(m, r, n, h, d[f + 5], 5, -701558691),
  40. h = md5_gg(h, m, r, n, d[f + 10], 9, 38016083),
  41. n = md5_gg(n, h, m, r, d[f + 15], 14, -660478335),
  42. r = md5_gg(r, n, h, m, d[f + 4], 20, -405537848),
  43. m = md5_gg(m, r, n, h, d[f + 9], 5, 568446438),
  44. h = md5_gg(h, m, r, n, d[f + 14], 9, -1019803690),
  45. n = md5_gg(n, h, m, r, d[f + 3], 14, -187363961),
  46. r = md5_gg(r, n, h, m, d[f + 8], 20, 1163531501),
  47. m = md5_gg(m, r, n, h, d[f + 13], 5, -1444681467),
  48. h = md5_gg(h, m, r, n, d[f + 2], 9, -51403784),
  49. n = md5_gg(n, h, m, r, d[f + 7], 14, 1735328473),
  50. r = md5_gg(r, n, h, m, d[f + 12], 20, -1926607734),
  51. m = md5_hh(m, r, n, h, d[f + 5], 4, -378558),
  52. h = md5_hh(h, m, r, n, d[f + 8], 11, -2022574463),
  53. n = md5_hh(n, h, m, r, d[f + 11], 16, 1839030562),
  54. r = md5_hh(r, n, h, m, d[f + 14], 23, -35309556),
  55. m = md5_hh(m, r, n, h, d[f + 1], 4, -1530992060),
  56. h = md5_hh(h, m, r, n, d[f + 4], 11, 1272893353),
  57. n = md5_hh(n, h, m, r, d[f + 7], 16, -155497632),
  58. r = md5_hh(r, n, h, m, d[f + 10], 23, -1094730640),
  59. m = md5_hh(m, r, n, h, d[f + 13], 4, 681279174),
  60. h = md5_hh(h, m, r, n, d[f + 0], 11, -358537222),
  61. n = md5_hh(n, h, m, r, d[f + 3], 16, -722521979),
  62. r = md5_hh(r, n, h, m, d[f + 6], 23, 76029189),
  63. m = md5_hh(m, r, n, h, d[f + 9], 4, -640364487),
  64. h = md5_hh(h, m, r, n, d[f + 12], 11, -421815835),
  65. n = md5_hh(n, h, m, r, d[f + 15], 16, 530742520),
  66. r = md5_hh(r, n, h, m, d[f + 2], 23, -995338651),
  67. m = md5_ii(m, r, n, h, d[f + 0], 6, -198630844),
  68. h = md5_ii(h, m, r, n, d[f + 7], 10, 1126891415),
  69. n = md5_ii(n, h, m, r, d[f + 14], 15, -1416354905),
  70. r = md5_ii(r, n, h, m, d[f + 5], 21, -57434055),
  71. m = md5_ii(m, r, n, h, d[f + 12], 6, 1700485571),
  72. h = md5_ii(h, m, r, n, d[f + 3], 10, -1894986606),
  73. n = md5_ii(n, h, m, r, d[f + 10], 15, -1051523),
  74. r = md5_ii(r, n, h, m, d[f + 1], 21, -2054922799),
  75. m = md5_ii(m, r, n, h, d[f + 8], 6, 1873313359),
  76. h = md5_ii(h, m, r, n, d[f + 15], 10, -30611744),
  77. n = md5_ii(n, h, m, r, d[f + 6], 15, -1560198380),
  78. r = md5_ii(r, n, h, m, d[f + 13], 21, 1309151649),
  79. m = md5_ii(m, r, n, h, d[f + 4], 6, -145523070),
  80. h = md5_ii(h, m, r, n, d[f + 11], 10, -1120210379),
  81. n = md5_ii(n, h, m, r, d[f + 2], 15, 718787259),
  82. r = md5_ii(r, n, h, m, d[f + 9], 21, -343485551),
  83. m = safe_add(m, i),
  84. r = safe_add(r, t),
  85. n = safe_add(n, c),
  86. h = safe_add(h, e)
  87. }
  88. return Array(m, r, n, h)
  89. }
  90. function md5_cmn(d, _, m, r, n, h) {
  91. return safe_add(bit_rol(safe_add(safe_add(_, d), safe_add(r, h)), n), m)
  92. }
  93. function md5_ff(d, _, m, r, n, h, f) {
  94. return md5_cmn(_ & m | ~_ & r, d, _, n, h, f)
  95. }
  96. function md5_gg(d, _, m, r, n, h, f) {
  97. return md5_cmn(_ & r | m & ~r, d, _, n, h, f)
  98. }
  99. function md5_hh(d, _, m, r, n, h, f) {
  100. return md5_cmn(_ ^ m ^ r, d, _, n, h, f)
  101. }
  102. function md5_ii(d, _, m, r, n, h, f) {
  103. return md5_cmn(m ^ (_ | ~r), d, _, n, h, f)
  104. }
  105. function safe_add(d, _) {
  106. var m = (65535 & d) + (65535 & _);
  107. return (d >> 16) + (_ >> 16) + (m >> 16) << 16 | 65535 & m
  108. }
  109. function bit_rol(d, _) {
  110. return d << _ | d >>> 32 - _
  111. }
  112. function hex_md5(d) {
  113. return binl2hex(core_md5(str2binl(d), d.length * 8))
  114. }
  115. globalThis.hex_md5 = hex_md5
  116. var rule = {
  117. 类型: '听书',
  118. title: '六月听书[听]',
  119. host: 'http://m.6yueting.com',
  120. url: '/ys/fyclass/o2/pfypage',
  121. searchUrl: '/search/index/search?content=**&type=1&pageNum=fypage&pageSize=40',
  122. searchable: 2,
  123. quickSearch: 0,
  124. filterable: 0,//是否启用分类筛选,
  125. headers: {
  126. 'User-Agent': MOBILE_UA,
  127. 'Accept-Language': 'zh-CN,zh;q=0.9',
  128. 'Cache-Control': 'no-cache',
  129. 'Pragma': 'no-cache',
  130. 'Range': 'bytes=0-',
  131. 'Referer': 'http://www.6yueting.com/'
  132. },
  133. class_name: '全部分类&玄幻奇幻&修真武侠&恐怖灵异&古今言情&都市言情&穿越重生&粤语古仔&网游小说&通俗文学&历史纪实&军事&悬疑推理&ebc5系列&官场商战&儿童读物&广播剧&外文原版&评书大全&相声小品&百家讲坛&健康养生&教材&期刊头条&戏曲&脱口秀',
  134. class_url: 't0&t1&t2&t3&t4&t28&t5&t6&t7&t11&t12&t13&t14&t18&t15&t16&t17&t22&t8&t9&t10&t20&t21&t23&t24&t27',
  135. play_parse: true,
  136. lazy: $js.toString(() => {
  137. let T = input.split('/')[4];
  138. let U = 'FRDSHFSKVKSKFKS';
  139. let b = input.split('/')[5];
  140. let data = {
  141. code: T,
  142. no: b,
  143. type: 0,
  144. timestamp: (new Date).getTime(),
  145. sign: hex_md5((new Date).getTime() + T + b + U)
  146. };
  147. let html = request('http://www.6yueting.com/web/index/video_new?code=' + data.code + '&no=' + data.no + '&type=' + data.type + '&timestamp=' + data.timestamp + '&sign=' + data.sign);
  148. let url = unescape(JSON.parse(html).data.videoUrl);
  149. input = {parse: 0, url: url, header: rule.headers};
  150. }),
  151. limit: 6,
  152. 图片来源: '@Referer=http://m.6yueting.com/@User-Agent=MOBILE_UA',
  153. 推荐: '*',
  154. 一级: '.list-wrapper&&.item-link;h2--span&&Text;img&&src;.status&&Text;a&&href',
  155. 二级: {
  156. "title": ".book-title&&Text;.text:eq(0)&&Text",
  157. "img": ".img&&src",
  158. "desc": ".text:eq(3)&&Text;;;.text:eq(1)&&Text;.text:eq(2)&&Text",
  159. "content": ".book-intro&&Text",
  160. "tabs": ".operate-bar&&.total-num",
  161. "lists": ".book-list:eq(#id)&&.list-item"
  162. },
  163. 搜索: 'js:let d=[];let MY_HOME="http://m.6yueting.com";let html=request(input);html=JSON.parse(html);let list=html.data.content;list.forEach(function(it){d.push({title:it.name.replace(/<.*?>/g,""),img:"http://img.6yueting.com:20001/"+it.coverUrlLocal,url:MY_HOME+"/list/"+it.code,desc:it.cdate,content:it.descXx.replace(/&nbsp;/g,"")})});setResult(d);',
  164. }